<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <base th:href="${#request.getContextPath() + '/system/'}"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Simpla Admin</title>
    <!--                       CSS                       -->
    <!-- Reset Stylesheet -->
    <link rel="stylesheet" href="resources/css/reset.css" type="text/css"
          media="screen" />
    <!-- Main Stylesheet -->
    <link rel="stylesheet" href="resources/css/style.css" type="text/css"
          media="screen" />
    <link rel="stylesheet" href="resources/css/invalid.css" type="text/css"
          media="screen" />
    <!--                       Javascripts                       -->
    <!-- jQuery -->
    <script type="text/javascript"
            src="resources/scripts/jquery-1.3.2.min.js"></script>
    <!-- jQuery Configuration -->
    <script type="text/javascript"
            src="resources/scripts/simpla.jquery.configuration.js"></script>
    <!-- Facebox jQuery Plugin -->
    <script type="text/javascript" src="resources/scripts/facebox.js"></script>
    <!-- jQuery WYSIWYG Plugin -->
    <script type="text/javascript" src="resources/scripts/jquery.wysiwyg.js"></script>
    <style>
        body {
            overflow-x: hidden;
            overflow-y: hidden;
        }
    </style>

    <!-- TODO 自定义ajax请求 -->
    <script type="text/javascript" th:src="${#request.getContextPath() + '/commons/js/myajax.js'}"></script>


    <script type="text/javascript" th:inline="javascript">
        $(function(){
            $("#homeframe").css("height", $(window).height())
            $("li ul:first").show();
        });

        function itemclick(ele){
            $("#homeframe").attr("src", ele.name);
            $(".current").removeClass("current");
            $(ele).addClass("current");
        }


        $(function(){
            isConnection();
        })

        function isConnection(){
            myajax({
                url: [[${#request.getContextPath()}]] + '/golang/status',
                success: function(data){
                    // console.log(data);
                    $("#conn").html(data ? "<font color='green'>连接成功</font>" : "<font color='yellow'>连接断开，正在重连... </font>");

                    setTimeout(function () {
                        isConnection();
                    }, 5000);
                }
            });
        }
    </script>

    <script th:src="${#request.getContextPath() + '/commons/js/mylogo.js'}"></script>

</head>
<body id="main_body">
<div id="body-wrapper">
    <!-- Wrapper for the radial gradient background -->
    <div id="sidebar">
        <div id="sidebar-wrapper">
            <!-- Sidebar with logo and menu -->
            <h1 id="sidebar-title">
                <a href="#">Simpla Admin</a>
            </h1>
            <!-- Logo (221px wide) -->
            <a><img id="mylogo" src="/logo/logo.png"
                             alt="Simpla Admin logo" /></a>
            <!-- Sidebar Profile links -->
            <div id="profile-links">
                你好, <a title="Edit your profile" th:text="${#session.getAttribute(T(com.video.commons.loginaop.LoginContact).BACK_USER.getKey()).name}">管理员</a><br />
                <br /> <a id="conn" title="连接状态">连接成功</a> | <a th:href="${#request.getContextPath() + '/logout'}" href="#"
                                                     title="Sign Out">注销</a>
            </div>

            <!-- 引入菜单 -->
            <ul id="main-nav">
                <li><a class="nav-top-item"> 会议管理 </a>
                    <ul>
                        <li><a onclick="itemclick(this);" th:name="${#request.getContextPath() + '/meeting/list'}" name="/meeting/list" class="current">会议列表</a></li>
                        <li><a onclick="itemclick(this);" th:name="${#request.getContextPath() + '/meeting/toadd'}" name="/meeting/toadd" >新建会议</a></li>
                        <li><a onclick="itemclick(this);" th:name="${#request.getContextPath() + '/meeting/tomeetingconfig'}" name="/meeting/tomeetingconfig" >会议参数设置管理</a></li>
                    </ul>
                </li>
                <li><a class="nav-top-item"> 终端管理 </a>
                    <ul>
                        <li><a onclick="itemclick(this);" th:name="${#request.getContextPath() + '/client/list'}" name="/client/list">终端列表</a></li>
                        <li><a onclick="itemclick(this);" th:name="${#request.getContextPath() + '/topage/clientgroup'}" name="/topage/clientgroup">群组管理</a></li>
                    </ul>
                </li>
                <li><a class="nav-top-item"> 分控管理 </a>
                    <ul>
                        <li><a onclick="itemclick(this);" th:name="${#request.getContextPath() + '/webcon/list'}" name="/client/list">分控列表</a></li>
                    </ul>
                </li>
                <li><a class="nav-top-item"> 系统诊断 </a>
                    <ul>
                        <li><a onclick="itemclick(this);" name="/model/list" >模块状态</a></li>
                        <li><a onclick="itemclick(this);" name="/topage/ping" >Ping</a></li>
                    </ul>
                </li>
                <li><a class="nav-top-item"> 日志管理 </a>
                    <ul>
                        <li><a onclick="itemclick(this);" name="/log/syslist" >系统日志</a></li>
                        <!--<li><a onclick="itemclick(this);" name="/log/syslist" >故障日志</a></li>-->
                    </ul>
                </li>
                <li><a class="nav-top-item"> 系统维护 </a>
                    <ul>
                        <li><a onclick="itemclick(this);" name="/topage/apkmanager" >apk管理</a></li>
                        <!--<li><a onclick="itemclick(this);" name="/topage/dbmanager" >数据库备份</a></li>-->
                        <li><a onclick="itemclick(this);" name="/topage/clientipupdate" >终端ip设置</a></li>
                        <li><a onclick="itemclick(this);" name="/topage/updatepassword" >修改密码</a></li>
                        <li><a onclick="itemclick(this);" name="/topage/sethost" >设置一键对讲主机</a></li>
                        <li><a onclick="itemclick(this);" name="/golang/ip" >设置golang服务器ip</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
    <div style="margin: 0 0 0 230px;">
        <!-- End #sidebar -->
        <iframe id="homeframe" name="homeframe" th:src="${#request.getContextPath() + '/meeting/list'}" src="/meeting/list"
                width="100%" scrolling="auto"  />
    </div>
</div>


</body>
<!-- Download From www.exet.tk-->
</html>
